package org.ycx.upms.dao.model;

import java.io.Serializable;
import java.util.Date;
import org.ycx.common.annotation.FormDesc;

@FormDesc(pk="pageId")
public class SecPageEle implements Serializable {
    /** 主键 */
    @FormDesc(name="主键",maxLength=10,type=1)
    private Integer pageId;

    /** 页面元素 */
    @FormDesc(name="页面元素",maxLength=100,type=0)
    private String eleId;

    /** 元素说明 */
    @FormDesc(name="元素说明",maxLength=100,type=0)
    private String elDesc;

    /** 对应权限ID */
    @FormDesc(name="对应权限ID",maxLength=10,type=1)
    private Integer pid;

    /** 创建时间 */
    @FormDesc(name="创建时间",maxLength=10,type=3)
    private Date createTs;

    /** 创建人 */
    @FormDesc(name="创建人",maxLength=10,type=1)
    private Integer createUid;

    /** 更新时间 */
    @FormDesc(name="更新时间",maxLength=10,type=3)
    private Date updateTs;

    /** 更新人 */
    @FormDesc(name="更新人",maxLength=10,type=1)
    private Integer updateUid;

    private static final long serialVersionUID = 1L;

    public Integer getPageId() {
        return pageId;
    }

    public void setPageId(Integer pageId) {
        this.pageId = pageId;
    }

    public String getEleId() {
        return eleId;
    }

    public void setEleId(String eleId) {
        this.eleId = eleId;
    }

    public String getElDesc() {
        return elDesc;
    }

    public void setElDesc(String elDesc) {
        this.elDesc = elDesc;
    }

    public Integer getPid() {
        return pid;
    }

    public void setPid(Integer pid) {
        this.pid = pid;
    }

    public Date getCreateTs() {
        return createTs;
    }

    public void setCreateTs(Date createTs) {
        this.createTs = createTs;
    }

    public Integer getCreateUid() {
        return createUid;
    }

    public void setCreateUid(Integer createUid) {
        this.createUid = createUid;
    }

    public Date getUpdateTs() {
        return updateTs;
    }

    public void setUpdateTs(Date updateTs) {
        this.updateTs = updateTs;
    }

    public Integer getUpdateUid() {
        return updateUid;
    }

    public void setUpdateUid(Integer updateUid) {
        this.updateUid = updateUid;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", pageId=").append(pageId);
        sb.append(", eleId=").append(eleId);
        sb.append(", elDesc=").append(elDesc);
        sb.append(", pid=").append(pid);
        sb.append(", createTs=").append(createTs);
        sb.append(", createUid=").append(createUid);
        sb.append(", updateTs=").append(updateTs);
        sb.append(", updateUid=").append(updateUid);
        sb.append("]");
        return sb.toString();
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        SecPageEle other = (SecPageEle) that;
        return (this.getPageId() == null ? other.getPageId() == null : this.getPageId().equals(other.getPageId()))
            && (this.getEleId() == null ? other.getEleId() == null : this.getEleId().equals(other.getEleId()))
            && (this.getElDesc() == null ? other.getElDesc() == null : this.getElDesc().equals(other.getElDesc()))
            && (this.getPid() == null ? other.getPid() == null : this.getPid().equals(other.getPid()))
            && (this.getCreateTs() == null ? other.getCreateTs() == null : this.getCreateTs().equals(other.getCreateTs()))
            && (this.getCreateUid() == null ? other.getCreateUid() == null : this.getCreateUid().equals(other.getCreateUid()))
            && (this.getUpdateTs() == null ? other.getUpdateTs() == null : this.getUpdateTs().equals(other.getUpdateTs()))
            && (this.getUpdateUid() == null ? other.getUpdateUid() == null : this.getUpdateUid().equals(other.getUpdateUid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPageId() == null) ? 0 : getPageId().hashCode());
        result = prime * result + ((getEleId() == null) ? 0 : getEleId().hashCode());
        result = prime * result + ((getElDesc() == null) ? 0 : getElDesc().hashCode());
        result = prime * result + ((getPid() == null) ? 0 : getPid().hashCode());
        result = prime * result + ((getCreateTs() == null) ? 0 : getCreateTs().hashCode());
        result = prime * result + ((getCreateUid() == null) ? 0 : getCreateUid().hashCode());
        result = prime * result + ((getUpdateTs() == null) ? 0 : getUpdateTs().hashCode());
        result = prime * result + ((getUpdateUid() == null) ? 0 : getUpdateUid().hashCode());
        return result;
    }
}